import logging.config
from django.conf import settings

class SetupMiddleware(object):

    def process_request(self, request):
        logging.config.fileConfig(settings.LOGGER_CONF)
